package org.xp.judgeplatform.pojo.vo.JudgeVO;

import lombok.Data;
import org.xp.judgeplatform.pojo.enums.JudgeStatus;

import java.math.BigDecimal;
import java.util.List;

@Data
public class JudgeResultVO {
    private JudgeStatus status;
    private Integer score;
    private Integer totalScore;
    private Integer passedCases;
    private Integer totalCases;
    private BigDecimal executionTime;
    private BigDecimal memoryUsage;
    private String errorMessage;
    private List<TestCaseResultVO> testResults;
    
    @Data
    public static class TestCaseResultVO {
        private Integer caseId;
        private String input;
        private String expected;
        private String actual;
        private JudgeStatus status;
        private BigDecimal time;
        private BigDecimal memory;
        private String error;
    }
}